import { getLogout } from "@/api/user";
import { useUserStoreHook } from "@/store/modules/user";
export const logout = () => {
  getLogout()
    .then(data => {
      console.log(data);
      useUserStoreHook().logOut();
    })
    .catch(error => {
      console.error(error);
    });
};
